<?php
namespace app\common\model;
use app\common\model\CommonModel;
use think\Db;

class OperationLog extends CommonModel
{
	/**
	* 添加操作日志
	*/
	public function serOperationLog($data)
	{
		$data['addtime'] = time();
		return $this->insert($data);
	}
	/**
	* 获取日志信息
	*/
	public function operationField($where,$field)
	{
		return $this->where($where)->value($field);
	}
}
